﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication9
{
    class Program
    {
        static void Main(string[] args)
        {
            int n = 6;
            int[] op = { 1, 2, 3, 4 };
            List <int>final = new List<int>{1, 1, 1, 1, 1 };
           // List<int> res = Check(op, final,1, 2);

           /* foreach (int elem in res)
            {
                Console.WriteLine(elem);
            }*/

        }
        static public int DoMaths(List<int> operators, int n)
        {
            List<int> final = new List<int>();
            int a=1;

                for (int i = 0; i < operators.Count; i++)
                {
                    if (operators[i] == 1)
                    {
                        final.Add(a +(i+1));
                    }
                    else if (operators[i] == 2)
                    {
                        final.Add(a - (i + 1));
                    }
                    else if (operators[i] == 3)
                    {
                        final.Add(a *(i+1));
                    }
                    else if (operators[i] == 4)
                    {
                        final.Add(a /(i+1));
                    }
                }
            return a;
        }

        static public int Check(int x, )

        static public void PereborSymb(int n, List<int>res)
        {
            int j = 0;
            int i=0;  //index res
            while (i < n)
            {
                res[i] = res[i] + 1;

                 if (i == 4)
                {
                    i = 0;
                    i--;
                }
             }
        }

    }
}
